package com.lff.service;

import com.lff.domain.User;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface UserService {
    User login(String userCode, String userPassword);

    User checkPwd(Long id, String oldPassword);

    @Transactional
    boolean updatePassword(Long id, String newpassword);

    List<User> findAll(String queryname, Integer queryUserRole);

    User findById(Integer uid);

    void updateUser(User user);

    @Transactional
    Integer deleteById(Long id);

    User queryUserCode(String userCode);

    void addUser(User user);
}
